/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cs575.wido;

/**
 *
 * @author kevincheung
 */
public class WebServiceFactory {
	private static cs575.client.WiDo_Service service;
	
	private WebServiceFactory() {
		
	}
	
	public static cs575.client.WiDo_Service getService() {
		if (WebServiceFactory.service == null) {
			WebServiceFactory.service = new cs575.client.WiDo_Service();
		}
		
		return WebServiceFactory.service;
	}
	
	public static cs575.client.WiDo getPort() {
		if (WebServiceFactory.service == null) {
			WebServiceFactory.service = getService();
		}
		return WebServiceFactory.service.getWiDoPort();
	}
        
     
}
